package com.buba.service.impl;

import com.buba.dao.FruitMapper;
import com.buba.pojo.Fruit;
import com.buba.pojo.Page;
import com.buba.service.FruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FruitServiceImpl implements FruitService {
    private FruitMapper fruitMapper;


    @Override
    public Integer delFruit(String ids) {
        return fruitMapper.delFruit(ids);
    }

    @Override
    public Integer updFruit(Fruit fruit) {
        return fruitMapper.updFruit(fruit);
    }

    @Override
    public Integer allDelFruit(List<String> list) {
        return fruitMapper.allDelFruit(list);
    }



    @Override
    public Integer addFruit(Map<String, Object> map) {
        return fruitMapper.addFruit(map);
    }

    @Override
    public long selCount(Map<String, Object> map) {
        return fruitMapper.selCount(map);
    }

    @Override
    public List<Fruit> selFruit(Map<String, Object> map) {
        return fruitMapper.selFruit(map);
    }


    @Autowired
    public void setFruitMapper(FruitMapper fruitMapper) {
        this.fruitMapper = fruitMapper;
    }
}
